﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<BizCollegeWebApp.Models.SurveyQuestion>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    AnswerQuestion
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <% if (TempData["Message"] != null)
       { %>
    <b>
        <%: TempData["Message"].ToString() %>
    </b>
    <br />
    <%} %>
    <fieldset>
        <legend>
            <%: Model.QuestionText %></legend>
        <% using (Html.BeginForm())
           { %>
        <% if (Model.IsMultipleChoice)
           {
               Html.RenderPartial("MultipleChoiceQuestion", Model);
           }
           else
           { %>
        <%: Model.QuestionText%>
        <br />
        <%: Html.TextArea("TextAnswer", new { @class = "cdTextArea" })%>
        <%}
        %>
        <input type="submit" value="Submit" />
        <%} %>
    </fieldset>
</asp:Content>
